package com.tiamo.traders.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class News extends PageModel implements Serializable {
    private int id;
    private String title;
    private String date;
    private String newsType;
    private String content;
    private String source;
    private String author;
    private String browse;
    private String newsConteents;
    private String version;
    private String imgHref;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getNewsType() {
        return newsType;
    }

    public void setNewsType(String newsType) {
        this.newsType = newsType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getBrowse() {
        return browse;
    }

    public void setBrowse(String browse) {
        this.browse = browse;
    }

    public String getNewsConteents() {
        return newsConteents;
    }

    public void setNewsConteents(String newsConteents) {
        this.newsConteents = newsConteents;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getImgHref() {
        return imgHref;
    }

    public void setImgHref(String imgHref) {
        this.imgHref = imgHref;
    }

    public News(int id, String title, String date, String newsType, String content, String source, String author, String browse, String newsConteents, String version, String imgHref) {
        this.id = id;
        this.title = title;
        this.date = date;
        this.newsType = newsType;
        this.content = content;
        this.source = source;
        this.author = author;
        this.browse = browse;
        this.newsConteents = newsConteents;
        this.version = version;
        this.imgHref = imgHref;
    }

    public News() {
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", date='" + date + '\'' +
                ", newsType='" + newsType + '\'' +
                ", content='" + content + '\'' +
                ", source='" + source + '\'' +
                ", author='" + author + '\'' +
                ", browse='" + browse + '\'' +
                ", newsConteents='" + newsConteents + '\'' +
                ", version='" + version + '\'' +
                ", imgHref='" + imgHref + '\'' +
                '}';
    }
}
